﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Runtime.Serialization;
using System.Web.Script.Serialization;
using System.Xml.Serialization;

namespace Datav.Design.Datas.Pocos;

/// <summary>过滤器</summary>
public partial class ProjectFilterModel
{
    #region 属性
    /// <summary>编号</summary>
    public Int64 Id { get; set; }

    /// <summary>项目ID</summary>
    public Int64 ProjectId { get; set; }

    /// <summary>排序</summary>
    public Int32 Sort { get; set; }

    /// <summary>类型Id</summary>
    public Int64 AttachmentTypeId { get; set; }

    /// <summary>名称</summary>
    public String Name { get; set; }

    /// <summary>内容</summary>
    public String Content { get; set; }

    /// <summary>文件路径。多个文件逗号分割</summary>
    public String FileUrls { get; set; }

    /// <summary>租户id</summary>
    public Int64 TenantId { get; set; }

    /// <summary>是否删除</summary>
    public Int32 IsDelete { get; set; }

    /// <summary>创建时间</summary>
    public DateTime CreateTime { get; set; }

    /// <summary>创建人</summary>
    public Int64 CreateBy { get; set; }

    /// <summary>创建人名称</summary>
    public String CreateName { get; set; }

    /// <summary>更新时间</summary>
    public DateTime UpdateTime { get; set; }

    /// <summary>修改建人</summary>
    public Int64 UpdateBy { get; set; }
    #endregion

    #region 拷贝
    /// <summary>拷贝模型对象</summary>
    /// <param name="model">模型</param>
    public void Copy(IProjectFilter model)
    {
        Id = model.Id;
        ProjectId = model.ProjectId;
        Sort = model.Sort;
        AttachmentTypeId = model.AttachmentTypeId;
        Name = model.Name;
        Content = model.Content;
        FileUrls = model.FileUrls;
        TenantId = model.TenantId;
        IsDelete = model.IsDelete;
        CreateTime = model.CreateTime;
        CreateBy = model.CreateBy;
        CreateName = model.CreateName;
        UpdateTime = model.UpdateTime;
        UpdateBy = model.UpdateBy;
    }
    #endregion
}
